package com.le.buddha.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.le.buddha.mobile.ChatHistory;
import com.le.buddha.mobile.vo.ChatHistoryVO;

import java.util.List;

public interface IChatHistoryService extends IService<ChatHistory> {
    /**
     * 获取最新的用户聊天记录
     * @param userId
     * @return
     */
    ChatHistory   queryChatLastHistoryByUser(Long userId);
    String queryChatHistorySessionId(Long userId);

    void saveChatHistory(Long userId,String question,String answer,String sessionId);

    List<ChatHistoryVO> queryUserHistoryList(Long userId);
}
